﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

using WorkStation.Frameworks.Configuration.Elements;

namespace WorkStation.Frameworks.EasyBus.Configurations
{
    public class BusConfiguration : BaseConfiguration
    {
        [XmlAttribute("nodeName")]
        public string NodeName { get; set; }

        [XmlElement("endpoint-setting")]
        public EndpointConfigurationCollection EndpointCollection { get; set; }

        [XmlElement("publish-setting")]
        public PublishConfigurationCollection PublishCollection { get; set; }

        [XmlElement("subscribe-setting")]
        public SubscribeConfigurationCollection SubscribeCollection { get; set; }
    }
}
